<template name="tools">
	<view>
		<scroll-view scroll-y class="page">
			<image src="/static/index-bg.png"
			 mode="widthFix" class="response"></image>
			<view class="nav-list">
				<navigator hover-class="none" :url="'/pages/tools/' + item.name" class="nav-li" navigateTo :class="'bg-'+item.color"
				 :style="[{animation: 'show ' + ((index+1)*0.2+1) + 's 1'}]" v-for="(item,index) in elements" :key="index">
					<view class="nav-title">{{item.title}}</view>
					<view class="nav-name">{{item.name}}</view>
					<text :class="'cuIcon-' + item.cuIcon"></text>
				</navigator>
			</view>
			<view class="cu-tabbar-height"></view>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		name: "tools",
		data() {
			return {
				elements: [{
						title: '表情包',
						name: 'emoji',
						color: 'green',
						cuIcon: 'emojifill'
					},
					{
						title: '找对象',
						name: 'love',
						color: 'red',
						cuIcon: 'myfill'
					},
				],
			};
		},
		onShow() {
			console.log("success")
		},
		methods: {
			navigateInterceptor() {
				console.log("跳转拦截")
				return false
			}
		}
	}
</script>

<style>
	.page {
		height: 100vh;
	}
</style>
